<html>
<head><meta charset="utf-8"><title>Meaning of non-zero exit codes · t-compiler · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/index.html">t-compiler</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/Meaning.20of.20non-zero.20exit.20codes.html">Meaning of non-zero exit codes</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="205761815"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/Meaning%20of%20non-zero%20exit%20codes/near/205761815" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> njn <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/Meaning.20of.20non-zero.20exit.20codes.html#205761815">(Aug 03 2020 at 05:52)</a>:</h4>
<p>There seems to be a meaningful distinction between and exit code of 1 vs 101, e.g. <a href="https://github.com/rust-lang/rust/blob/master/src/test/run-make-fulldeps/exit-code/Makefile">here</a></p>



<a name="205761817"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/Meaning%20of%20non-zero%20exit%20codes/near/205761817" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> njn <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/Meaning.20of.20non-zero.20exit.20codes.html#205761817">(Aug 03 2020 at 05:52)</a>:</h4>
<p>Can someone explain the difference?</p>



<a name="205761826"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/Meaning%20of%20non-zero%20exit%20codes/near/205761826" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> njn <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/Meaning.20of.20non-zero.20exit.20codes.html#205761826">(Aug 03 2020 at 05:52)</a>:</h4>
<p>is 101 an ICE?</p>



<a name="205762314"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/Meaning%20of%20non-zero%20exit%20codes/near/205762314" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> njn <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/Meaning.20of.20non-zero.20exit.20codes.html#205762314">(Aug 03 2020 at 06:04)</a>:</h4>
<p>This is in relation to <a href="https://github.com/rust-lang/rust/blob/7637cbb79bad4fdc29906a21847096a997a13631/src/librustdoc/lib.rs#L94-L99">this code</a> -- the thread is only necessary so that any panics can be caught and the exit code changed to 1, AFAICT</p>



<a name="205762325"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/Meaning%20of%20non-zero%20exit%20codes/near/205762325" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> njn <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/Meaning.20of.20non-zero.20exit.20codes.html#205762325">(Aug 03 2020 at 06:04)</a>:</h4>
<p>If I remove that thread, some tests return an exit code of 101 on rustdoc failures instead of 1</p>



<a name="205763331"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/Meaning%20of%20non-zero%20exit%20codes/near/205763331" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> bjorn3 <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/Meaning.20of.20non-zero.20exit.20codes.html#205763331">(Aug 03 2020 at 06:33)</a>:</h4>
<p>101 is a panic: <a href="https://github.com/rust-lang/rust/blob/ac48e62db85e6db4bbe026490381ab205f4a614d/library/std/src/rt.rs#L56">https://github.com/rust-lang/rust/blob/ac48e62db85e6db4bbe026490381ab205f4a614d/library/std/src/rt.rs#L56</a></p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>